import request from '@/utils/request'

// 查询商品图片列表
export function listProduct_picture(query) {
  return request({
    url: '/catalog/product_picture/list',
    method: 'get',
    params: query
  })
}

// 查询商品图片详细
export function getProduct_picture(productPictureId) {
  return request({
    url: '/catalog/product_picture/' + productPictureId,
    method: 'get'
  })
}

// 新增商品图片
export function addProduct_picture(data) {
  return request({
    url: '/catalog/product_picture',
    method: 'post',
    data: data
  })
}

// 修改商品图片
export function updateProduct_picture(data) {
  return request({
    url: '/catalog/product_picture',
    method: 'put',
    data: data
  })
}

// 删除商品图片
export function delProduct_picture(productPictureId) {
  return request({
    url: '/catalog/product_picture/' + productPictureId,
    method: 'delete'
  })
}

// 导出商品图片
export function exportProduct_picture(query) {
  return request({
    url: '/catalog/product_picture/export',
    method: 'get',
    params: query
  })
}